import http from "./http"
// https://api-hmugo-web.itheima.net/api/public/v1/home/catitems导航
export const catitemsApi=()=>{
    return http({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/home/catitems',
        method:'get'
    })
}
// https://api-hmugo-web.itheima.net/api/public/v1/goods/search 列表参数query
export const  searchApi=(query)=>{
    return http({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/goods/search',
        method:'get',
        params:{
            query
        }
    })
}
// https://api-hmugo-web.itheima.net/api/public/v1/categories 分类
export const  categoriesApi=()=>{
    return http({
        url:'https://api-hmugo-web.itheima.net/api/public/v1/categories ',
        method:'get',
    })
}